<?php

namespace catchAdmin\pc\tables;

use catchAdmin\pc\tables\forms\Factory;
use catcher\CatchTable;
use catcher\library\table\Actions;
use catcher\library\table\HeaderItem;
use catcher\library\table\Search;

class SysLabelZhaoPin extends CatchTable
{

    public function Table()
    {
        return $this
            ->getTable('sysLabelZhaoPin')
            ->header([
                HeaderItem::label('名称')
                    ->prop('label_name'),
                HeaderItem::label('操作')
                    ->actions([
                        Actions::update(),
                        Actions::delete(),

                    ])
                    ->width(260),
            ])
            ->withSearch([
                Search::label('名称')
                    ->text('label_name', '名称')
                    ->clearable(true),
            ])
            ->selectionChange()
            ->withApiRoute('sysLabelZhaoPin')
            ->withActions([
//                Actions::update(),
                Actions::create(),
//                Actions::export(),
            ])
            ->render();
    }


    public function form()
    {
        return Factory::create('sysLabelZhaoPin');
    }

}
